<script>
import modal from '@/mixins/modal'
export default {
    name: 'OpinionFormModal',
    mixins: [modal],
    computed: {
        formItem() {
            return this.row
        }
    }
}
</script>
<template>
    <span>
        <IButton click @click="show = true" :type="type" :icon="icon" :perm="perm" :size="size">
          <slot></slot>
        </IButton>
        <Modal v-model="show" :label-width="80" :title="title" :width="700">
            <Form :model="formItem">
                <FormItem label="标题：">
                    {{this.formItem.title}}
                </FormItem>
                <FormItem label="反馈内容：">
                  {{this.formItem.content}}
                </FormItem>
                <Form-item prop="description">
                    <Input v-model="formItem.replyContent" :autosize="{minRows: 10,maxRows: 10}" type="textarea" placeholder="请输入您需要回复的内容"></Input>
                </Form-item>
            </Form>
            <div slot="footer">
                <Button type="text" @click="show = false">取消</Button>
                <Button type="primary" :loading="loading" @click="ok">{{loading ? '拼命中...' :'确定'}}</Button>
            </div>
        </Modal>
    </span>
</template>
